package com.ss.android.newmedia.activity;

import android.app.Activity;
import com.bytedance.common.utility.Logger;
import com.ss.android.common.app.permission.PermissionsManager;
import com.ss.android.common.app.permission.PermissionsResultAction;
import com.ss.android.newmedia.BaseApplication;

import java.util.List;

final class b extends PermissionsResultAction {
    private final AbsSplashActivity c;
    private final List a;
    private final Activity b;

    b(AbsSplashActivity arg1, List arg2, Activity arg3) {
        this.c = arg1;
        this.a = arg2;
        this.b = arg3;

    }

    public final void onGranted() {
        Logger.d("AbsSplashActivity", "onGranted");
        if(this.a.contains("android.permission.READ_PHONE_STATE")) {
            ((BaseApplication)this.b.getApplication()).initDeviceId();
        }

        AbsSplashActivity.a(this.b, this.a);
        this.c.k();
    }

    public final void onDenied(String arg4) {
        Logger.d("AbsSplashActivity", "onDenied: " + arg4);
        if((this.a.contains("android.permission.READ_PHONE_STATE")) && (PermissionsManager.getInstance().a(this.b, "android.permission.READ_PHONE_STATE"))) {
            ((BaseApplication)this.b.getApplication()).initDeviceId();
        }

        AbsSplashActivity.a(this.b, this.a);
        this.c.k();
    }
}

